<template>
	<view>
		<view class="box">
			<view class="view-list-item">
				<text class="text-list-item"> <text
						style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 企业抬头:</text>
				<view class="input-text select">
					<view class="cur">
						<image @click="current = 1"
							:src="current == 1 ? '../../../static/checked.png' : '../../../static/unchecked.png'"
							mode=""></image> <text :style="{'color':current == 1 ? '#014495' : ''}">公司抬头</text>
					</view>
					<view class="cur">
						<image @click="current = 2"
							:src="current == 2 ? '../../../static/checked.png' : '../../../static/unchecked.png'"
							mode=""></image> <text :style="{'color':current == 2 ? '#014495' : ''}">个人抬头</text>
					</view>
				</view>
			</view>
			<view style="height: 1rpx; background-color: #f9f9f9;"></view>

			<template v-if="current == 1">
				<view class="view-list-item">
					<text class="text-list-item"> <text
							style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 企业抬头:</text>
					<input class="input-text" type="text" v-model="rise" placeholder="填写企业抬头" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>

				<view class="view-list-item">
					<text class="text-list-item"> <text
							style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 企业税号:</text>
					<input class="input-text" type="text" v-model="mark" placeholder="填写企业税号" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>

				<view class="view-list-item">
					<text class="text-list-item"> <text
							style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 开票金额:</text>
					<text class="input-text" style="font-size: 28rpx;color: #333;">15.5</text>
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>

				<view class="view-list-item">
					<text class="text-list-item"> 企业地址:</text>
					<input class="input-text" type="text" v-model="site" placeholder="填写企业地址" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>
				<view class="view-list-item">
					<text class="text-list-item"> 企业电话:</text>
					<input class="input-text" type="text" v-model="mobile" placeholder="填写企业电话" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>
				<view class="view-list-item">
					<text class="text-list-item"> 企业开户银行:</text>
					<input class="input-text" type="text" v-model="depositBank" placeholder="填写企业开户银行" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>
				<view class="view-list-item">
					<text class="text-list-item"> 企业开户银行账号:</text>
					<input class="input-text" type="text" v-model="account" placeholder="填写企业开户银行账号" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>

				<view class="remark">
					<text class="title">备注</text>
					<view class="ipt">
						<textarea style="padding: 20rpx 30rpx;" name="" id="" cols="30" rows="10"
							placeholder="请按公司报销要求填写"></textarea>
					</view>
					<view style="height: 30rpx;"></view>
				</view>
			</template>
			<template v-else>
				<view class="view-list-item">
					<text class="text-list-item"> <text
							style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 发票抬头:</text>
					<input class="input-text" type="text" v-model="rise" placeholder="填写发票抬头" />
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>

				<view class="view-list-item">
					<text class="text-list-item"> <text
							style="color: red;position: relative;top: 5rpx;font-size: 26rpx;">*</text> 开票金额:</text>
					<text class="input-text" style="font-size: 28rpx;color: #333;">15.5元</text>
				</view>
				<view style="height: 1rpx; background-color: #f9f9f9;"></view>
			</template>
		</view>

		<view class="way">
			<view class="text">
				<text>*</text>
				<text>接受方式</text>
			</view>
			<view class="ipt">
				<input type="text" placeholder="请输入电子邮箱">
			</view>
			<view style="height: 30rpx;"></view>
		</view>

		<view class="btn">
			提交
		</view>
		<view style="height: 49rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current: 1,
				rise: '',
				mark: '',
				site: '',
				mobile: '',
				depositBank: '',
				account: ''
			}
		},

		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F6F6F6;
	}

	.box {
		width: 95%;
		margin: auto;
		margin-top: 30rpx;
		background-color: #FFF;
		border-radius: 20rpx;
	}

	.view-list-item {
		display: flex;
		align-items: center;
		background-color: #FFF;
		height: 100rpx;
		// margin: 0 30rpx;
		padding: 0 30rpx;

		.text-list-item {
			flex-grow: 1;
			flex-shrink: 1;
			font-size: 28rpx;
			color: #222;

			.img {
				width: 80rpx;
				height: 40rpx;
			}
		}

		.uploading {
			font-size: 28rpx;
			color: #222;
		}

		text {
			font-size: 26rpx;
			color: #222;
			position: relative;
			top: -5rpx;
		}

		.input-text {
			width: 65%;
			text-align: right;
			font-size: 28rpx;
			color: #999;
		}

		.select {
			display: inline-block;

			.cur {
				display: inline-block;
				margin-right: 20rpx;

				image {
					width: 26rpx;
					height: 26rpx;
					margin-right: 12rpx;
				}

				// color: #014495;
			}
		}

		.img-right {
			margin-left: 18rpx;
			width: 46rpx;
			height: 46rpx;
		}
	}

	.remark {
		.title {
			display: inline-block;
			margin-top: 39rpx;
			padding: 0 30rpx;
		}

		.ipt {
			width: 80%;
			height: 200rpx;
			margin: auto;
			margin-top: 40rpx;
			height: 199rpx;
			background: #F6F6F6;
			border-radius: 16rpx;
		}
	}

	.way {
		width: 95%;
		margin: auto;
		margin-top: 30rpx;
		background-color: #FFF;
		border-radius: 20rpx;

		.text {
			padding: 37rpx 31rpx;

			text {
				&:nth-child(1) {
					color: red;
					position: relative;
					top: 5rpx;
					font-size: 26rpx;
				}

				&:nth-child(2) {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #222222;
					line-height: 36rpx;
				}
			}
		}

		.ipt {
			width: 90%;
			margin: auto;
			margin-top: 42rpx;
			height: 80rpx;
			background: #F6F6F6;
			border-radius: 16rpx;

			input {
				width: 95%;
				position: relative;
				top: 20rpx;
				padding: 0 20rpx;
			}
		}
	}

	.btn {
		width: 500rpx;
		height: 80rpx;
		background: #014495;
		border-radius: 16rpx;
		margin: auto;
		margin-top: 45rpx;
		text-align: center;
		line-height: 80rpx;
		font-size: 36rpx;
		font-family: Microsoft YaHei;
		font-weight: bold;
		color: #FFFFFF;
	}
</style>
